import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  server: {
    host: '0.0.0.0',
    port: 5173,
    proxy: {
      '/api': {
        // target: 'http://aiexaminer.zhangtianyu.net',
        target: 'http://127.0.0.1:9000',
        // target: 'http://10.244.99.52:8010',
        changeOrigin: true,
        rewrite: (path) => path
      }
    }
  }
})
